package com.yao.sys.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 菜单表
*
* @author autoCode
* @version 1.0.0-SNAPSHOT
* @date 2020-03-23
*/
@Data
public class MenuEntity implements Serializable {

private static final long serialVersionUID = 1L;

    /**
    * 自增主键
    */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Integer id;
    /**
    * 有效状态0-有效
    */
    @TableField(value = "`status`", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_EMPTY)
    private Byte status;
    /**
     * 菜单名
     */
    @TableField(value = "`name`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String name;
    /**
     * 菜单类型 1-按钮 2-链接
     */
    @TableField(value = "`type`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private Byte type;
    /**
     * 菜单相对url
     */
    @TableField(value = "`url`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String url;
    /**
    * 父菜单id
    */
    @TableField(value = "`parentId`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer parentId;
    /**
    * 排序
    */
    @TableField(value = "`sort`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer sort;
    /**
    * 创建时间
    */
    @TableField(value = "`createTime`", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
    * 更新时间
    */
    @TableField(value = "`updateTime`", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}